package com.supplychainapi.common.exception;

import com.supplychainapi.common.RestResponse;

public class CustomException extends RuntimeException {
    private RestResponse restResponse;

    public CustomException(RestResponse restResponse) {
        super("400001");
        this.restResponse = restResponse;
    }

    public RestResponse getRestResponse() {
        return restResponse;
    }
}
